package com.openecommerce.core.constants;

/**
 * 订单状态常量
 * @author Tommy
 *
 */
public class OrderConstants {

	/****************订单流转状态（status）*************************/ 
	public static class Status{
		/**
		 * 新生成订单
		 */
		public final static short NEW = 0;
		/**
		 * 确认订单
		 */
		public final static short CONFIRM = 1;
		/**
		 * 待付款
		 */
		public final static short TO_PAY = 2; 
		/**
		 * 已付款
		 */
		public final static short PAYED = 3;
		/**
		 * 待发货
		 */
		public final static short TO_SHIP = 4;
		/**
		 * 已发货
		 */
		public final static short SHIPED = 5;
		/**
		 * 已签收
		 */
		public final static short SIGNED = 6;
		/**
		 * 待评论
		 */
		public final static short TO_COMMENT = 7;
		/**
		 * 已评论
		 */
		public final static short COMMENTED = 8;
		/**
		 * 已关闭(已取消)
		 */
		public final static short CANCELED = 9;
		/**
		 * 已结束
		 */
		public final static short FINISHED = 10;
	}
	
	
	/***********************订单非连续状态（hold）*************************************/
	public static class State{
		/**
		 * 订单正常
		 */
		public final static short NORMAL = 0;
		/**
		 * 订单被挂起
		 */
		public final static short HOLDED = 1;
	}
	
}
